#include "udpclient.hpp"

void Usge(char* args)
{
    std::cout << "please input " << args << " ip + port\n";
}


int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        Usge(argv[0]);
        exit(-1);
    }  
    int port = std::atoi(argv[2]);
    wzh::udpclient cli(argv[1], port);
    cli.initServer();
    cli.start();
    return 0;
}